package com.charm.nukaties.adapter.vp

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

class ViewPagerAdapter(fras: ArrayList<Fragment>, manager: FragmentManager) : FragmentPagerAdapter(manager) {
    private val fragments = fras

    override fun getItem(position: Int): Fragment {
        return fragments[position]
    }

    override fun getCount(): Int {
        return fragments.size
    }
}